<tr>
  <td valign="top" class="name" colspan="2">
    <b>Primary Address:</b>
  </td>
</tr>
<tr>
  <td valign="top" class="name">
    <label for="line1">Street:</label>
  </td>
  <td valign="top" class="value ${hasErrors(bean:company,field:'primaryAddress.line1','errors')}">
    <input type="text" id="line1" name="primaryAddress.line1" value="${fieldValue(bean:company,field:'primaryAddress.line1')}"/>
  </td>
</tr>
%{--<tr class="prop">
  <td valign="top" class="name">
    <label for="line2">Address Line 2:</label>
  </td>
  <td valign="top" class="value ${hasErrors(bean:company,field:'primaryAddress.line2','errors')}">
    <input type="text" id="line2" name="primaryAddress.line2" value="${fieldValue(bean:company,field:'primaryAddress.line2')}"/>
  </td>
</tr>--}%
<tr class="prop">
  <td valign="top" class="name">
    <label for="suite">Suite:</label>
  </td>
  <td valign="top" class="value ${hasErrors(bean:company,field:'primaryAddress.suite','errors')}">
    <input type="text" id="suite" name="primaryAddress.suite" value="${fieldValue(bean:company,field:'primaryAddress.suite')}"/>
  </td>
</tr>
<tr class="prop">
  <td valign="top" class="name">
    <label for="city">City:</label>
  </td>
  <td valign="top" class="value ${hasErrors(bean:company,field:'primaryAddress.city','errors')}">
    <input type="text" id="city" name="primaryAddress.city" value="${fieldValue(bean:company,field:'primaryAddress.city')}"/>
  </td>
</tr>
<tr class="prop">
  <td valign="top" class="name">
    <label for="state">State:</label>
  </td>
  <td valign="top" class="value ${hasErrors(bean:company,field:'primaryAddress.state','errors')}">
    <g:select id="state" optionKey="id" from="${State.list()}" name="primaryAddress.state.id" value="${company?.primaryAddress?.state?.id?:14}" ></g:select>
  </td>
</tr>
<tr class="prop">
  <td valign="top" class="name">
    <label for="postalCode">Zip:</label>
  </td>
  <td valign="top" class="value ${hasErrors(bean:company,field:'primaryAddress.postalCode','errors')}">
    <input type="text" id="postalCode" name="primaryAddress.postalCode" value="${fieldValue(bean:company,field:'primaryAddress.postalCode')}"/>
  </td>
</tr>
